package com.wmeimob.fastboot.jiubei.service;


import com.wmeimob.fastboot.core.service.CommonService;
import com.wmeimob.fastboot.jiubei.entity.ShopOrders;

import java.util.List;
import java.util.Map;

/**
 * @author wjt
 * @version 1.0
 * @ClassName ShopOrdersService
 * @Description 订单
 * @Date Mon Aug 31 23:57:11 CST 2020
 **/
public interface ShopOrdersService extends CommonService<ShopOrders> {

    /**
     * 订单查询
     *
     * @param id
     * @return
     */
    default ShopOrders queryShopOrdersById(Long id) {
        throw new UnsupportedOperationException();
    }

    ;

    /**
     * 订单添加
     *
     * @param shopOrders
     * @return
     */
    default void addShopOrders(ShopOrders shopOrders) {
        throw new UnsupportedOperationException();
    }

    ;


    /**
     * 订单删除
     *
     * @param id
     * @return
     */
    default void removeShopOrders(Long id) {
        throw new UnsupportedOperationException();
    }

    ;


    /**
     * 订单修改
     *
     * @param shopOrders
     * @return
     */
    default void modifyShopOrders(ShopOrders shopOrders) {
        throw new UnsupportedOperationException();
    }

    ;

    /**
     * 按条件查找，附带item信息
     *
     * @param shopOrders
     * @return
     */
    default List<ShopOrders> findListByCondition(ShopOrders shopOrders) {
        throw new UnsupportedOperationException();
    }

    /**
     * 查找订单详细信息 附带orderItem
     *
     * @param id
     * @return
     */
    default ShopOrders findShopOrdersById(Long id) {
        throw new UnsupportedOperationException();
    }

    /**
     * @param shopOrders
     */
    default void ship(ShopOrders shopOrders) {
        throw new UnsupportedOperationException();
    }

    /**
     * @param orders
     * @return
     */
    default ShopOrders calculateOrders(ShopOrders orders) {
        throw new UnsupportedOperationException();
    }

    /**
     * 确认订单
     *
     * @param newOrder
     * @return
     */
    default ShopOrders confirmOrder(ShopOrders newOrder) {
        throw new UnsupportedOperationException();
    }

    /**
     * 支付订单数据
     *
     * @param shopOrders
     * @return
     */
    default Map<String, Object> wechatPay(ShopOrders shopOrders) {
        throw new UnsupportedOperationException();
    }

    /**
     * 通过orderNo查找订单
     *
     * @param orderNo
     * @return
     */
    default ShopOrders queryShopOrdersByNo(String orderNo) {
        throw new UnsupportedOperationException();
    }

    /**
     * 更新商品销售量
     *
     * @param orders
     */
    default void updateForPaySuccess(ShopOrders orders) {
        throw new UnsupportedOperationException();
    }

    /**
     * 恢复库存
     *
     * @param shopOrders
     */
    default void rebackStock(ShopOrders shopOrders) {
        throw new UnsupportedOperationException();
    }

    /**
     * 支付宝支付
     *
     * @param shopOrders
     * @return
     */
    default Map<String, Object> aliPay(ShopOrders shopOrders) {
        throw new UnsupportedOperationException();
    }

    /**
     * 微信支付
     * @param shopOrders
     * @return
     */
    default Map<String, Object> pay(ShopOrders shopOrders) {
        throw new UnsupportedOperationException();
    }

}
